<script type="text/javascript">
    $.fn.treeGridOptions.formSubFun("#form", '/modules/column/weChatMenu/doWeChatEdit.html'); //表单提交  参数1：表单id 参数2：表单action地址
</script>
<div class="popForm">
    <form id="form" method="post" enctype="multipart/form-data">
        <div class="formitm">
            <label class="lab">名称：</label>
            <div class="ipt">
                <input type="text" id="name" class="w400 easyui-validatebox" name="name" value="${weChatMenu.name!}"
                       data-options="required: true,validType:'length[1,8]'">
                <b>*</b>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">内容：</label>
            <div class="ipt">
                <input type="text" name="content" value="${weChatMenu.content}" class="w400 easyui-validatebox"
                       data-options="required: true"/>
                <b>*</b><br/>
                <#if weChatMenu.buttonType?? && weChatMenu.buttonType==2><span>注：该菜单的内容模板请到:系统管理-系统配置-消息管理中添加或修改</span></#if>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">等级：</label>
            <div class="ipt">
                <input name="level" value="${weChatMenu.level}" hidden="hidden"/>
                <select name="level" disabled="disabled">
                    <option value="1"<#if weChatMenu.level==1>selected="selected"</#if>>一级</option>
                    <option value="2"<#if weChatMenu.level==2>selected="selected"</#if>>二级</option>
                </select>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">父级ID：</label>
            <div class="ipt">
                <input type="text" name="parentId" value="${weChatMenu.parentId!}" class="w400 easyui-validatebox" disabled="disabled"/>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">类型：</label>
            <div class="ipt">
                <#if weChatMenu.buttonType?? && weChatMenu.buttonType==1>跳转URL</#if>
                <#if weChatMenu.buttonType?? && weChatMenu.buttonType==2>点击事件</#if>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">排序：</label>

            <div class="ipt">
                <input type="text" name="sort" value="${weChatMenu.sort}" class="easyui-numberbox"
                       data-options="required:true,validType:'length[1,4]'" maxlength="4"/>
                <b>*</b>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">备注：</label>

            <div class="ipt">
                <textarea class="w400 easyui-validatebox" name="remark" data-options="validType:'maxLength[150]'"
                          maxlength="150">${weChatMenu.remark!}</textarea>
            </div>
        </div>
        <input name="id" value="${weChatMenu.id}" type="hidden">
        <input name="parentId" value="${weChatMenu.parentId}" type="hidden">
        <input name="buttonType" value="${weChatMenu.buttonType}" type="hidden">
    </form>
</div>